<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>练习background-clip的功能</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        div{
            width: 400px;
            height: 400px;
            padding: 100px;
            border: 10px dotted pink;
            margin: 100px auto;
            background-image: url(1.jpg);
            background-origin: content-box;

        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>